package com.lipeng.mapper;

import com.lipeng.bean.Photo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PhotoMapper {
    int deleteByPrimaryKey(Integer pid);

    int insert(Photo record);

    int insertSelective(Photo record);

    Photo selectByPrimaryKey(Integer pid);

    int updateByPrimaryKeySelective(Photo record);

    int updateByPrimaryKey(Photo record);

    List<Photo> findAllPhoto();

    List<Photo> selectPhotoByName(@Param("name") String name);

    List<Photo> selectPhotoByUid(Integer uid);
}